package com.gitee.ly.ymorm.transaction;

import javax.sql.DataSource;
import java.sql.Connection;

/**
 * TransactionFactory
 *
 * @author ly
 **/
public interface TransactionFactory {
    Transaction newTransaction(Connection conn);

    Transaction newTransaction(DataSource dataSource, TransactionIsolationLevel level, boolean autoCommit);

}
